package com.harassment.interception.data.databases;

import android.arch.persistence.room.Database;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.RoomDatabase;
import android.arch.persistence.room.TypeConverters;
import android.support.v4.media.VolumeProviderCompat;

import com.harassment.interception.data.databases.converters.DateConverter;
import com.harassment.interception.data.databases.dao.BlackListDao;
import com.harassment.interception.data.databases.dao.InterceptedPhoneDao;
import com.harassment.interception.data.databases.dao.InterceptedSmsDao;
import com.harassment.interception.data.databases.dao.WhiteListDao;
import com.harassment.interception.data.databases.entities.BlackList;
import com.harassment.interception.data.databases.entities.InterceptedPhone;
import com.harassment.interception.data.databases.entities.InterceptedSms;
import com.harassment.interception.data.databases.entities.WhiteList;


@Database(entities = {BlackList.class, WhiteList.class, InterceptedPhone.class, InterceptedSms.class}, version = 1,exportSchema = false)
@TypeConverters({DateConverter.class})
public abstract class HIDatabase extends RoomDatabase {
    public static final String DATABASE_NAME= "harassment_interception";
    public static int DARK_MODEL = 0;//模糊
    public static int ACCURATE_MODEL = 1;//精确
    public abstract BlackListDao getBlackListDao();
    public abstract WhiteListDao getWhiteListDao();
    public abstract InterceptedPhoneDao getInterceptedPhoneDao();
    public abstract InterceptedSmsDao getInterceptedSmsDao();
}
